﻿namespace _02.BankExersice.Customers
{
    using System;

    public class CompanyCustomer : Customer
    {
        private string bulstat;

        public CompanyCustomer(string name, string bulstat, string phoneNumber)
            : base(name, phoneNumber)
        {
            this.Bulstat = bulstat;
        }

        public string Bulstat
        {
            get
            {
                return this.bulstat;
            }

            set
            {
                if (value.Equals(string.Empty))
                {
                    throw new ArgumentException();
                }

                this.bulstat = value;
            }
        }
    }
}
